<?php
	/**
 	 * Application menus' class
 	 */	
	class Menus
	{
	   /**
	    * global menu (modules)
		*/
    	public static $global = array
		(
			'administration' => array
			(
				'text' => LANG_ADMINISTRATION,
				'url'=>'/clients/', 
			),
//			'registers' => array
//			(
//				'text' => LANG_REGISTERS,
//				'url'=>'/traffic_types/', 
//			),
		);
		
	   /**
	    * contextual menu (2-level)
		*/
		public static $contextual = array
		(
			'settings' => array
			(
				'module' => 'administration',
				'text' => LANG_SYSTEM,
				'url' => '', 
				'sub' => array
				(
					'systemsettings' => array
					(
						'table_name'=>'t_system_settings',
						'text' => LANG_SYSTEM_SETTINGS,
						'url'=>'/systemsettings/'
					),
				)
			),

			'users' => array
			(
				'module' => 'administration',
				'text' => LANG_USERS,
				'url' => '', 
				'sub' => array
				(
					'users' => array
					(
						'table_name' => 't_users',
						'text' => LANG_ADMINISTRATORS,
						'url' => '/users/',
					),
					'clients' => array 	
					( 	
					    'table_name'=>'t_clients', 	
					    'text' => LANG_CLIENTS, 	
					    'url'=>'/clients/' 	
					),  
					'transactions' => array 	
					( 	
					    'table_name'=>'t_transactions', 	
					    'text' => LANG_TRANSACTIONS, 	
					    'url'=>'/transactions/' 	
					), 
					'news' => array 	
					( 	
					    'table_name'=>'t_news', 	
					    'text' => LANG_NEWS, 	
					    'url'=>'/news/' 	
					), 					
					'charts' => array 	
					( 	
					    'table_name'=>'t_clients', 	
					    'text' => LANG_CHARTS, 	
					    'url'=>'/clients/charts/' 	
					), 
					'chats' => array 	
					( 	
					    'table_name'=>'t_chats', 	
					    'text' => LANG_CHATS, 	
					    'url'=>'/chats/' 	
					), 	
					'chatmessages' => array 	
					( 	
					    'table_name'=>'t_chat_messages', 	
					    'text' => LANG_CHAT_MESSAGES, 	
					    'url'=>'/chatmessages/' 	
					), 	
					'PM' => array 	
					( 	
					    'table_name'=>'t_clients', 	
					    'text' => LANG_PM, 	
					    'url'=>'/messages/' 	
					),  								 
				)
			),
			
			'contentManager' => array
            (
                    'module'=>'administration',
                    'text' => LANG_CONTENT_MANAGEMENT,
                    'url'=>'', 
                    'sub'=>array
                    (      
						 'languages' => array
						 (
							  'table_name'=>'t_languages',
							  'text' => LANG_MENUS,
							  'url'=>'/languages/'
						 ),
                    	'russian' => array
                         (
                              'table_name'=>'t_languages',
                              'text' => LANG_RUSSIAN,
                              'url'=>'/app/includes/elements/abitwhizzy/abitwhizzy.php?language=russian'
                         ),
                         'english' => array
                         (
                              'table_name'=>'t_languages',
                              'text' => LANG_ENGLISH,
                              'url'=>'/app/includes/elements/abitwhizzy/abitwhizzy.php?language=english'
                         ),
                         'chinese' => array
                         (
                              'table_name'=>'t_languages',
                              'text' => LANG_CHINESE,
                              'url'=>'/app/includes/elements/abitwhizzy/abitwhizzy.php?language=chinese'
                         ),
                         'spanish' => array
                         (
                              'table_name'=>'t_languages',
                              'text' => LANG_SPANISH,
                              'url'=>'/app/includes/elements/abitwhizzy/abitwhizzy.php?language=spanish'
                         ),
            		)
            ),			
			'registers' => array
			(
				'module'=>'administration',
				'text' => LANG_REGISTERS,
				'url'=>'', 
				'sub'=>array
				(
					'account_types' => array 	
					( 	
					    'table_name'=>'t_account_types', 	
					    'text' => LANG_ACCOUNT_TYPES, 	
					    'url'=>'/accounttypes/' 	
					), 
					'countries' => array 	
					( 	
					    'table_name'=>'t_countries', 	
					    'text' => LANG_COUNTRIES, 	
					    'url'=>'/countries/' 	
					), 
					'lottery_types' => array 	
					( 	
					    'table_name'=>'t_lottery_types', 	
					    'text' => LANG_LOTTERY_TYPES, 	
					    'url'=>'/lottery_types/' 	
					), 
					'lotteries' => array 	
					( 	
					    'table_name'=>'t_lotteries', 	
					    'text' => LANG_LOTTERIES, 	
					    'url'=>'/lotteries/' 	
					), 
					'clients_lotteries' => array 	
					( 	
					    'table_name'=>'t_clients_lotteries', 	
					    'text' => LANG_CLIENTS_LOTTERIES, 	
					    'url'=>'/clients_lotteries/' 	
					), 
					'deposit_types' => array
					(
							'table_name'=>'t_deposit_types',
							'text' => LANG_DEPOSIT_TYPES,
							'url'=>'/deposit_types/'
					),
					'deposits' => array
					(
							'table_name'=>'t_deposits',
							'text' => LANG_DEPOSITS,
							'url'=>'/deposits/'
					),
				)
			),	

			'helpers' => array
			(
				'module'=>'guide',
				'text' => LANG_HELPERS,
				'url'=>'', 
				'sub'=>array
				(
					'grid' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_GRIDS,
						'url'=>'/guide/viewGrid/'
					),
					'toolbar' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_TOOLBARS,
						'url'=>'/guide/viewToolbar/'
					),
					
				)
			),
			
			'mvc' => array
			(
				'module'=>'guide',
				'text' => LANG_MVC,
				'url'=>'', 
				'sub'=>array
				(
					'model' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_MODEL,
						'url'=>'/guide/viewModel/'
					),
					
					'controller' => array
					(
						'table_name'=>'t_guides',
						'text' => LANG_CONTROLLER,
						'url'=>'/guide/viewController/'
					),
				)
			), 
		);
	
	   /**
	    * site global menu 
		*/
    	public static $site_global = array
		(
			'mlm' => array
			(
				'text' => LANG_PROJECT_NAME,
				'url'=>'/info/mlm/',
				'in_header' => false,
				'in_footer' => true,
				'is_private' => false,
				'in_footer_private' => true
			),
			'deposits' => array
			(
				'text' => LANG_DEPOSITS,
				'url'=>'/info/deposits/',
				'in_header' => false,
				'in_footer' => true,
				'is_private' => false,
				'in_footer_private' => true
			),
			'lottery' => array
			(
				'text' => LANG_LOTTERY,
				'url'=>'/info/lottery/',
				'in_header' => false,
				'in_footer' => true,
				'is_private' => false,
				'in_footer_private' => true
			),			
			'how' => array
			(
				'text' => LANG_HOW_IT_WORKS,
				'url'=>'/info/how/',
				'in_header' => false,
				'in_footer' => false,
				'is_private' => false
			),
			'tips' => array
			(
				'text' => LANG_TIPS_AND_HINTS,
				'url'=>'/info/tips/',
				'in_header' => false,
				'in_footer' => true,
				'is_private' => false
			),
			'sign' => array
			(
				'text' => LANG_SIGN_IN,
				'url'=>'/home/?login=1',
//				'url'=>'#',
//				'onclick' => '$("#recoverBox").fadeOut(); $("#dialogID").dqDialog("open",{width:"350", top:"285"})',
				'in_header' => false,
				'in_footer' => false,
				'is_public' => true,
				'in_header_1' => true
			),
			'register' => array
			(
				'text' => LANG_REGISTER,
				'url'=>'/clients/registration/',
				'in_header' => false,
				'in_footer' => false,
				'is_public' => true,
				'in_header_1' => true
			),
			'login' => array
			(
				'text' => LANG_SIGN_IN,
				'url'=>'/home/?login=1',
				'in_header' => false,
				'in_footer' => false,
				'is_public' => false,
				'in_header_1' => false
			),
			'faqs' => array
			(
				'text' => LANG_FAQS,
				'url'=>'/info/faqs/',
				'in_header_2' => true,
				'in_header' => false,
				'in_footer' => false,
				'is_private' => false,
				'in_footer_private' => true,
			),
			'contacts' => array
			(
				'text' => LANG_CONTACT_US,
				'url'=>'#',
				'onclick' => '$("#recoverBox").fadeOut(); $("#contactsID").dqDialog("open",{width:"350", top:"285"})',
				'in_header_2' => true,
				'in_header' => false,
				'in_footer' => false,
				'is_private' => false,
				'in_footer_private' => true
			),
			'support' => array
			(
				'text' => LANG_SUPPORT,
				'url'=>'#',
				'onclick' => '$("#recoverBox").fadeOut(); $("#supportID").dqDialog("open",{width:"500", top:"120"})',
				'in_header_2' => true,
				'in_header' => false,
				'in_footer' => false,
				'is_private' => false,
				'in_footer_private' => true
			),
			'calculator' => array
			(
				'text' => LANG_PROFIT_CALCULATOR,
				'url'=>'/clients/calculator/',
				'in_header_1' => true,
				'in_footer' => false,
				'is_private' => false
			),
			'chats' => array
			(
				'text' => LANG_CHAT_ROOM,
				'url'=>'/chats/rooms/',
				'in_header' => true,
				'in_header_1' => false,
				'in_footer' => false,
				'is_private' => true
			),
			'messages' => array
			(
				'text' => LANG_MESSAGES,
				'url'=>'/messages/compose/',
				'in_header' => true,
				'in_header_1' => false,
				'in_footer' => false,
				'is_private' => true
			),			
//			'tour' => array
//			(
//				'text' => LANG_FREE_TOUR,
//				'url'=>'#',
//				'onclick' => '$("#recoverBox").fadeOut(); $("#tourID").dqDialog("open",{width:"900", top:"140"})',
//				'in_header_1' => true,
//				'in_header' => false,
//				'in_footer' => false,
//				'is_private' => false
//			),
			'news' => array
			(
				'text' => LANG_NEWS,
				'url'=>'/news/actual/',
				'in_header_1' => true,
				'in_header' => true,
				'in_footer' => false,
				'is_private' => false
			),			
		);

	   /**
	    * site account menu 
		*/
    	public static $site_account = array
		(
			'account' => array
			(
				'text' => LANG_MY_ACCOUNT,
				'url' => '/clients/account/',
			),				
			'profile' => array
			(
				'text' => LANG_PERSONAL_INFO,
				'url' => '/clients/profile/',
			),		
			'deposits' => array
			(
					'text' => LANG_DEPOSITING_ROOM,
					'url' => '/deposits/show/',
			),
			'lottery' => array
			(
				'text' => LANG_LOTTERY_ROOM,
				'url' => '/lotteries/show/',
			),
			'calculator' => array
			(
					'text' => LANG_PROFIT_CALCULATOR,
					'url' => '/clients/calculator/',
			),
			'upgrade' => array
			(
				'text' => LANG_UPGRADE_ACCOUNT,
				'url' => '/clients/upgrade/',
			),				
			'withdraw' => array
			(
				'text' => LANG_WITHDRAW_MONEY,
				'url' => '/clients/withdraw/',
			),				
//			'chats' => array
//			(
//				'text' => LANG_CHAT_ROOM,
//				'url' => '/chats/rooms/',
//			),				
			'card' => array
			(
				'text' => LANG_MY_VISIT_CARD,
				'url' => '/clients/card/',
			),				
			'logout' => array
			(
				'text' => LANG_SIGN_OUT,
				'url' => '/clients/logout/',
			),				
		);	
	}
?>